<!--工作经历添加-->
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!-- 导入头部top文件 start -->
<%@include file="../common/header.jsp" %>
<body>
<form class="form-horizontal m-t" id="mainForm" method="post">
    <div class="wrapper wrapper-content animated fadeInRight">
        <div class="row">
            <div class="col-sm-12">
                <div class="ibox-title">
                    <h5>工作经历信息</h5>
                </div>
                <div class="ibox-content">
                    <ul class="nav nav-tabs">
                        <li class="active"><a data-toggle="tab" href="#tab-1"> 基本信息</a>
                        </li>
                        <li class=""><a data-toggle="tab" href="#tab-2">工作内容</a>
                        </li>
                    </ul>
                    <div class="tab-content" style="margin-top: 10px;">
                        <div id="tab-1" class="tab-pane active">
                            <input type="hidden" id="id" name="id" value="${model.id}"/>

                            <div class="form-group">
                                <label class="col-sm-3 control-label">公司名称：*</label>

                                <div class="col-sm-8">
                                    <input id="name" name="name" type="text" value="${model.name}" class="form-control"
                                    >
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">职位：</label>

                                <div class="col-sm-8">
                                    <input id="job" name="job" type="hidden" value="${model.job}" class="form-control"
                                    >
                                    <input id="jobName" name="jobName" type="text" value="${model.jobName}" class="form-control"
                                         >
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">公司logo：</label>

                                <div class="col-sm-8">
                                    <div class="att-container">
                                        <div class="img-box fl">
                                            <c:if test="${model.logo==null or model.logo==''}">
                                                <img id="pic-image" name="logo" src="${path}/static/img/default.jpg"
                                                     alt="logo" class="img-rounded" width="200px"
                                                     height="200px"/>
                                            </c:if>
                                            <c:if test="${model.logo!=null and model.logo!=''}">
                                                <img id="pic-image" name="logo" src="${staticServer}${model.logo}"
                                                     alt="logo" class="img-rounded" width="200px"
                                                     height="200px"/>
                                            </c:if>
                                            <div id="fileContainer" style="display: none"></div>
                                        </div>
                                        <div class="upload-container fl">
                                            <input type="file" name="file_upload" id="file_upload"/>
                                            <input type="hidden" name="logo" id="logo" value="${model.logo}"/>
                                        </div>
                                    </div>

                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-3 control-label">在职开始时间：</label>

                                <div class="col-sm-8">
                                    <input type="date" class="form-control" id="startTime" name="startTime"
                                           value="${model.startDate}">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">在职结束时间：</label>

                                <div class="col-sm-8">
                                    <input type="date" class="form-control" id="endTime" name="endTime"
                                           value="${model.endDate}">
                                </div>
                            </div>
                        </div>
                        <div id="tab-2" class="tab-pane">
                            <div class="form-group">
                                <textarea id="content" name="content"
                                       >${model.content}</textarea>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-4 col-sm-offset-3">
                                <button class="btn btn-primary" type="submit" id="idSubmit">提交</button>
                            </div>
                        </div>
                    </div>
                    <script src="/static/js/jquery.min.js?v=2.1.4"></script>
                    <script src="/static/js/bootstrap.min.js?v=3.3.5"></script>
                    <script src="/static/js/content.min.js?v=1.0.0"></script>
                    <script src="/static/js/plugins/validate/jquery.validate.min.js"></script>
                    <script src="/static/js/plugins/validate/messages_zh.min.js"></script>
                    <script src="/static/js/plugins/ueditor/ueditor.config.js"></script>
                    <script src="/static/js/plugins/ueditor/ueditor.all.min.js"></script>
                    <script src="/static/js/plugins/upload/jquery.uploadify.min.js"></script>
                    <script src="/static/js/att.js"></script>
                </div>
            </div>
        </div>
    </div>
</form>
<script type="text/javascript">
    var ue = UE.getEditor('content', {initialFrameHeight: 600});
    var id = "${model.id}";
    var resumeId="${model.resumeId}"
    var status = "${status}";
    var from = mainForm;
    $("#jobName").click(function () {
        var d = dialog({
            id: "dialog",
            title: '选择职位类别',
            url: '/job/dialog',
            ok: function () {
                var iframeWin = this.iframeNode.contentWindow;
                from.job.value = iframeWin.selectId;
                from.jobName.value = iframeWin.selectName;
            },
            width: 520,
            height:200
        }).show();
    });
</script>
<script src="/static/js/admin/resumeWorkExperience.js"></script>
</body>
</html>
